#!/bin/bash
ps -ef|grep kmads-common-swoole|grep -v grep|awk  '{print $2}'|while read PID;
do
    kill -9 $PID;
done
echo "">/home/www/src/kmadadmin/runtime/swoole-log/2017-02-22.log
/usr/local/php/bin/php /home/www/src/kmadadmin/think ReportAdsData-Server
/usr/local/php/bin/php /home/www/src/kmadadmin/think ReportAdsData-Client

ps -ef|grep Swoole-Server|grep -v grep|awk  '{print $2}'|while read PID;
do
    kill -9 $PID;
done

ps -ef|grep kmads-common-swoole|grep -v grep|awk  '{print $2}'|while read PID;
do
    kill -9 $PID;
done

ps -ef|grep kmads-reportAdsData-swoole|grep -v grep|awk  '{print $2}'|while read PID;
do
    kill -9 $PID;
done